/**
 * 
 */
var params={};
$(function(){
	adaptive();
	params={size:12,type:2,content:$("#search").val()};
	var form1=$("#form1").serializeObject();
	params= $.extend({}, params, form1);
	loadDataPageIetm("/data-retrievalN", "srcoll-documentation", "lists",params);
	//helpTextSearch();
		//搜索
		$('#user-help-search').click(function(){
			$('#lists').html("");
			$(':input','#form1').val('');
			params={size:12,type:2,content:$("#search").val()};
			loadDataPageIetm("/data-retrievalN", "srcoll-documentation", "lists",params);
		});
		
		$('.data-pub').children('li').each(function(){
			//$(this).children('.data-a').children();
		});
	});
//构建数据列表--用于分页查询
function dataKk(data, me) {
	data=data.rows;
	var result = '';
	var arrLen = data.length;
	if (arrLen > 0) {
		for (var i = 0; i < arrLen; i++) {
			result +='<li><div class="paper-a"><a dmId="'+data[i].id+'" dmurl="'+data[i].url+'" projectId="'+data[i].projectId+'">'+data[i].title+'</a></div>'
					+'<div class="userhelp-new">'+data[i].content+'</div></li>';
		}
	} else {
		me.lock();
		me.noData();
	}
	return result;
}
function dw(p){
	var params={
            dmId:$(p).attr("dmId"),
            projectId:$(p).attr("projectId"),
            type:"userhelp"
        };
	httpPost("/ietm/goDmUrl", params);
}
//搜索条件关键字黄色高亮显示
function helpTextSearch(){
if(""!==$("#search").val()){
	$(".lists").textSearch($("#search").val());
	}
	else if(""===$("#search").val()&&""!==$("#search1").val()){
	$(".lists").textSearch($("#search1").val());
	}
}
